package com.jt.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * @outhor fufeixiang
 * @date 2021-04-26
 */
@Component
@Aspect
public class SpringAOP {

//    @Before("bean(userServiceImpl)")
    @Before("within(com.jt..*.UserServiceImpl)")
    public void before(){
        System.out.println("我是before通知");
    }
}
